<div>
	<ul>
		<li><?php echo anchor('cliente/formNovoCliente','Novo Cliente')?></li>
	</ul>
</div>

<div>
	<form action="<?php echo($action);?>" method="post">
		<label>Pesquisar:</label>
		<input type="text" name="nome" maxlength="200" required="required">
		<input type="submit" value="Pesquisar">
	</form>
</div>
<div>
	<?php if(isset($clientes)):?>
	<table border="1">
		<thead>
			<th>Nome</th>
		</thead>
		<tbody>
			<?php foreach ($clientes as $cliente):?>
			<tr>
				<td><?php echo(anchor('cliente/detalharCliente/'. $cliente->id_cliente, $cliente->tx_nome));?></td>
				<td><?php echo anchor('cliente/formAtualizarCliente/'.$cliente->id_cliente,'Atualizar')?></td>
				<td><?php echo anchor('cliente/apagarCliente/'.$cliente->id_cliente,'Apagar')?></td>
			</tr>
			<?php endforeach;?>
		</tbody>
	</table>
	<?php endif;?>
</div>